namespace Front;

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
        //MessageBox.Show("Hello World!");
        Form2 f2 = new Form2();
        //f2.Show();//显示窗体 无模式窗体
        //f2.ShowDialog();//显示窗体 模式窗体
        //f2.Hide();//隐藏窗体
        //f2.MdiParent = this;
        f2.Show();
    }


    private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
    {
        Console.WriteLine(this.listBox1.SelectedIndex);
        int index = this.listBox1.SelectedIndex;
        if (index==0||index==1||index==2)
        {
            this.textBox1.Text = "春季";
        }
        if (index==3||index==4||index==5)
        {
            this.textBox1.Text = "夏季";
        }
    }


    private void Form1_Load(object sender, EventArgs e)
    {
        
    }

    private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
        System.Diagnostics.Process.Start("cmd", $"/c start https://www.baidu.com");
        linkLabel1.LinkVisited = true;
    }
}